{extend name="$_admin_layout"}

{block name="tpl_vars"}
    {assign name="page_title" value="日志管理" /}
{/block}

{block name="main-content"}
    <form id="log_list" class="table-form table-manager">
        <div class="box box-blue no-heading">
            <div class="box-body">

                <div class="row">
                    <div class="col-sm-12">
                        <table class="table table-bordered table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>{:helper('admin/table')->render_header_text('消息标识')}</th>
                                    <th>{:helper('admin/table')->render_header_text('消息类型')}</th>
                                    <th>{:helper('admin/table')->render_header_text('消息内容')}</th>
                                    <th>{:helper('admin/table')->render_header_text('创建时间')}</th>
                                </tr>
                            </thead>
                            <tbody>
                                {notempty name="log_list"}
                                    {foreach name="log_list" item="vo"}
                                        <tr>
                                            <td>{:helper('admin/table')->render_column_text($vo['msg_id'])}</td>
                                            <td>{:helper('admin/table')->render_column_text($vo['msg_type'])}</td>
                                            <td>{:helper('admin/table')->render_column_text($vo['post_xml'])}</td>
                                            <td>{:helper('admin/table')->render_column_date_time($vo['create_time'])}</td>
                                        </tr>
                                    {/foreach}
                                {else /}
                                    {:helper('admin/table')->render_empty_row()}
                                {/notempty}
                            </tbody>
                        </table>

                        {notempty name="log_list"}
                            {:helper('admin/table')->render_pagination($pagination, $_controller->url('index', array('page' => '[page]')))}
                        {/notempty}
                    </div>
                </div>

            </div><!-- /.box-body -->
        </div><!-- /.box -->
    </form>
{/block}
